package cn.sytton.taffe.framework.properties.auth;

import cn.sytton.taffe.framework.captcha.CaptchaType;

/**
 * yml配置类：auth.captcha
 *
 * @author skyrock
 */
public class CaptchaProperties {
    /**
     * 过期时间,(单位：分钟, 默认5)
     */
    private int expireTime = 5;
    /**
     * 是否开启图片验证码
     */
    private boolean enabled = false;
    /**
     * 验证码类型
     */
    private CaptchaType type = CaptchaType.MATH;

    public int getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(int expireTime) {
        this.expireTime = expireTime;
    }

    public CaptchaType getType() {
        return type;
    }

    public void setType(CaptchaType type) {
        this.type = type;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
